#ifndef _USR_H_
#define _USR_H_
#include <iostream>
#include <string>
using namespace std;
// usr表的ORM类------映射关系类
//user类
class User
{

public:
    User(int id=-1,string name="",string password="",string state="offline")
        :_id(id),_name(name),_password(password),_state(state)
    {}
    void setid(int id)
    {
        _id=id;
    }
    void setname(string name)
    {
        _name=name;
    }
    void setpassword(string password)
    {
        _password=password;
    }
    void setstate(string state)
    {
        _state=state;
    }
    int getid()
    {
        return _id;
    }
    string getname()
    {
        return _name;
    }
    string getpassword()
    {
        return _password;
    }
    string getstate()
    {
        return _state;
    }
private:
    int _id;
    string _name;
    string _password;
    string _state;
};
#endif